package cn.keduox.entity;

import cn.keduox.annotation.*;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 书本其他信息类
 */
@Table(name = "book_info")
public class BookInfo implements Serializable{
    /**
     * id
     */
    @Id(name = "id")
    @Column(name = "id")
    @Key(farther = "book_info")
    private String id;
    /**
     * 开本id
     */
    @Column(name ="folio_id")
    private String folioId;
    /**
     * 抢购场
     */
    @Column(name = "flash_id")
    private String flashId;
    /**
     * 出版时间
     */
    @Column(name = "begin_time")
    private Timestamp beginTime;
    /**
     * 下架时间
     */
    @Column(name = "end_time")
    private Timestamp endTime;
    /**
     * 价格区间
     */
    @Column(name = "section_id")
    private String  sectionId;


    @Column(name = "create_by")
    private String createBy;
    @Column(name = "create_time")
    private Timestamp createTime;
    @Column(name = "update_by")
    private String updateBy;
    @Column(name = "update_time")
    private Timestamp updateTime;
    @Column(name = "del_flag")
    private Integer delFlag;
    /**
     * 书籍外键
     */
    @Column(name = "book_id")
    private String bookId;
    @Entity(table = "book_folio",field = "folioId",address = "cn.keduox.entity.BookFolio",name = "bookFolio")
    private BookFolio bookFolio;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFolioId() {
        return folioId;
    }

    public void setFolioId(String folioId) {
        this.folioId = folioId;
    }

    public String getFlashId() {
        return flashId;
    }

    public void setFlashId(String flashId) {
        this.flashId = flashId;
    }

    public Timestamp getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Timestamp beginTime) {
        this.beginTime = beginTime;
    }

    public Timestamp getEndTime() {
        return endTime;
    }

    public void setEndTime(Timestamp endTime) {
        this.endTime = endTime;
    }

    public String getSectionId() {
        return sectionId;
    }

    public void setSectionId(String sectionId) {
        this.sectionId = sectionId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public BookFolio getBookFolio() {
        return bookFolio;
    }

    public void setBookFolio(BookFolio bookFolio) {
        this.bookFolio = bookFolio;
    }
}
